package com.craftcomputing.client.Entry;

import com.google.gwt.json.client.JSONValue;

public class MaterialEntry extends EntryPanel {

	public MaterialEntry() {
		panel.add(materialEntryPanel);
	}
	public void setPanelStyle(String style){
		panel.setStyleName(style);
	}
	public void updateEntry(JSONValue json){
		materialEntryPanel.update(json);
		entryLabel.setHTML("<b>" + materialEntryPanel.getTitle() + "</b>");
	}
	public String searchText() {
		return "/python/materials?search=";
	}
	private MaterialEntryPanel materialEntryPanel = new MaterialEntryPanel();
}
